package com.pucheng.bracelet.ui.activity.gpsrun

import android.content.Intent
import android.os.Bundle
import com.blankj.utilcode.util.ToastUtils
import com.pucheng.bracelet.R
import com.pucheng.bracelet.app.util.StatusBarUtil
import com.pucheng.bracelet.viewmodel.gpsrun.RunStatisticsViewModel
import kotlinx.android.synthetic.main.layout_title.*
import me.hgj.jetpackmvvm.base.activity.BaseVmActivity

class RunStatisticsActivity : BaseVmActivity<RunStatisticsViewModel>() {
    override fun createObserver() {
        StatusBarUtil.setColor(this, resources.getColor(R.color.gps_run_bg), 0)
    }

    override fun dismissLoading() {
    }

    override fun initView(savedInstanceState: Bundle?) {
        tv_title.text = getString(R.string.gps_run)
        ibtn_back.setOnClickListener { finish() }
        ibtn_right.setOnClickListener { startActivity(Intent(this,GPSRunHistoryActivity::class.java)) }
    }

    override fun layoutId(): Int = R.layout.activity_run_statistics

    override fun showLoading(message: String) {
    }
}